#!/bin/bash

info_message="Message"
warn_message="Warning"
error_message="Error"
prompt_message="Prompt"
goon_button="Continue"
return_button="Return"

#env.sh

menu_title="MENU"
menu_prompt="Please select the action, you can use up down and Tab keys to select, use the Enter key to execute"
menu_content_1="Optimization system"
menu_content_2="Close service"
menu_content_3="Install MySQL"
menu_content_4="Install Redis"
menu_content_5="Install Memcached"
menu_content_6="Instatll Nginx"
menu_content_7="Install Apache"
menu_content_8="Install PHP"
menu_content_9="Install JDK"
menu_content_10="Install Jenkins"
menu_content_11="Install Nexus"
menu_content_12="Install SVN"
menu_content_13="Install Docker"
menu_content_14="Configuration Local YUM Repository"
menu_content_15="Create a self-signed SSL certificate"
menu_content_16="Fixed Centos6 Yum Repository"
menu_content_17="Help"

check_env_prompt="Testing the system environment,please wait a moment....."

check_newt="Error,Please intall newt Package first!"
install_newt="Please wait a moment to prepare the environment....."

mysql_gauge="Install MySQL Server"

#memcached.sh
cacheSize_title="Memcahced cache size settings"
cacheSize_text="The default cache size is 1/10 of memory MB,if 1/10 of memory is less than 128M set to 128"
cachePort_promtp="Memcached the cache size must be no 0 number,please re-enter!"
cache_beginIns="Start Memcached installation"
cacheSize_set="Change Memcached cache size"
cache_start="Start Memcached"
cache_gauge="Installation of Memcached services"
cache_success="Memcached installed successfully, cache size is "
cache_failed="Memcached installation failed!"

#serviceOptimize.sh
serviceSel=(
"Select Service"
"Please select services that need to be disabled"
"Firewall services"
"Mail services"
)
servicePrompt=(
"No service to disable is selected"
"Disabling services"
"Disable System Services"
"Service has been disabled"
)

#sysOptimize.sh
sysOptimize_prompt=(
"This option will perform the following actions"
"Modify system kernel parameters"
"Modify limits resource limit"
"Disable SELinux"
"Modify hosts file"
"Replace the YUM source to Ali"
"Set the time zone to Shanghai, China"
"Sync System Time"
"Install Basic Software"
"Whether to continue execution"
)


sysOptimize_process=(
"Modify kernel parameters"
"Use sysctl -p to make the kernel modification take effect"
"Modification of system limits"
"Disable selinux"
"Set up the hosts file"
"Replace the YUM source with Alibaba Cloud and enable EPEL to expand the YUM source"
"Change time zone to Shanghai, China"
"Install the necessary software"
"synchronised time"
"Optimize System Performance"
"Congratulations, you have completed the system optimization.\nSome modifications may take effect after restart"
)


#yumRepair.sh
yumRepair_prompt=(
"Note: This feature is only available for CentOS 6
This function is used to solve the problem that yum cannot be installed because CentOS6 is no longer supported.
If you still cannot use yum installation after repairing, try to re-execute this function and change the YUM source provider\n"
"This option will perform the following actions"
"Back up the existing CentOS-Base.repo and epel.repo"
"Modify Yum repository to centos-vault"
"Whether to continue execution"
"Base Repository Provider Selection"
"Ali Cloud"
"Tsinghua University"
"EPEL Repository Provider Selection"
"Official (recommended)"
"Chongqing University"
)
yumRepair_process=(
"Backup existing Yum repository"
"Enable the new CentOS-Base repository"
"Enable new EPEL repository"
"Repair CentOS 6 YUM repository"
"Complete YUM repository repair
If it is not available, please try to change the YUM repository provider"
)






